package online.shenme.day08.SetArray;

import java.util.HashSet;
import java.util.TreeSet;

public class test {
    public static void main(String[] args) {
        HashSet<String> set1=new HashSet<>();
        System.out.println("");
        set1.add("146asd");
        set1.add("159faf");
        set1.add("asd198");
        for (String s : set1) {
            System.out.println(s);
        }
        TreeSet<String> set2=new TreeSet<>();
        set2.add("146asd");
        set2.add("159faf");
        set2.add("asd198");
        System.out.println(set2.contains("asd198"));
        for (String s : set2) {
            System.out.println(s);
        }
    }
}
